package com.pro.service.imple;

import com.pro.mapper.JsUserCoursePendingMapper;
import com.pro.pojo.JsUserOrder;
import com.pro.service.JsUserCoursePendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserCoursePendingServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/11 下午 3:09
 * @Author: WYH
 */
@Service
public class JsUserCoursePendingServiceImple implements JsUserCoursePendingService {

    @Autowired(required = false)
    private JsUserCoursePendingMapper jsUserCoursePendingMapper;

    @Override
    public List<JsUserOrder> getAllCourse(String orderPaymentChannel, String orderSource) {
        List<JsUserOrder> allCourse = jsUserCoursePendingMapper.getAllCourse(orderPaymentChannel, orderSource);
        return allCourse;
    }

    @Override
    public int count(String orderPaymentChannel, String orderSource) {
        int count = jsUserCoursePendingMapper.count(orderPaymentChannel, orderSource);
        return count;
    }

    @Override
    public Boolean delCourse(Integer orderId) {
        Boolean aBoolean = jsUserCoursePendingMapper.delCourse(orderId);
        return aBoolean;
    }
}
